﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Model.Entitys
{
    [SugarTable("Manager")]
    public class Manager: EntityBase
    {
        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnName = "Account", IsNullable = false, Length = 50)]
        public string Account { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [SugarColumn(ColumnName = "NickName", IsNullable = false, Length = 50)]
        public string NickName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnName = "Password", IsNullable = false, Length = 60)]
        public string Password { get; set; }

        /// <summary>
        /// 用户类型（0=超级管理员，1=普通用户）
        /// </summary>
        [SugarColumn(ColumnName = "UserType", IsNullable = false)]
        public int UserType { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        [SugarColumn(ColumnName = "AvatarPath", IsNullable = true, Length = 200)]
        public string AvatarPath { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [SugarColumn(ColumnName = "BriefIntroduction", IsNullable = true, Length = 600)]
        public string BriefIntroduction { get; set; }

        /// <summary>
        /// 是否启用（0=未启用，1=启用）
        /// </summary>
        [SugarColumn(ColumnName = "IsEnable", IsNullable = false)]
        public bool IsEnable { get; set; }
    }
}
